ASK

Syntax: ASK ([#wind,] question$)
Location: BTool

ASK is a function which prints the question$ (plus a question mark (?) if this was not found at the end of the string), enables the text cursor and reads the keyboard. If the next key pressed is <Y> (for Yes), <J> (for Ja) or <N> (for No or Nein) then ASK will disable the cursor, echo the key next to the prompt and return 1 if either <Y> or <J> was pressed, or 0 if <N> was pressed.

Example:
Answer=ASK (#3,'Are you using a QL')

CROSS-REFERENCE:
CUR, REPLY, INPUT
